using TMPro;
using UnityEngine;
using UnityEngine.UI;
using Voodoo.Pattern;

public class DuelPlayerNames : MonoBehaviour
{
	public TMP_InputField PlayerInputField;

	public TextMeshProUGUI OpponentName;

	public Image OpponentFlag;

	private void Start()
	{
	}

	public void OnPlayerInput()
	{
		SingletonMB<DuelModeManager>.Instance.PlayersName = PlayerInputField.text;
	}

	public void Fill()
	{
		OpponentName.text = SingletonMB<DuelModeManager>.Instance.OpponentName;
		PlayerInputField.text = SingletonMB<DuelModeManager>.Instance.PlayersName;
		OpponentFlag.sprite = SingletonMB<DuelModeManager>.Instance._opponentSprite;
	}

	private void Update()
	{
	}
}
